<template>
  <div class="layout-padding" >
    <div class="layout-padding-auto layout-padding-view">
      <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
        <el-tab-pane lazy label="登录日志" name="first">
          <login-log/>
        </el-tab-pane>
        <el-tab-pane lazy label="操作日志" name="second">
          <admin-log/>
        </el-tab-pane>
        <el-tab-pane lazy label="控制日志" name="third">
          <control-log/>
        </el-tab-pane>
        <!-- <el-tab-pane label="审计日志" name="fouth">
          <audit-log/>
        </el-tab-pane> -->
        
      </el-tabs>
    </div>
  </div>
</template>

<script lang="ts" setup>


import type { TabsPaneContext } from 'element-plus'


const activeName = ref('first')
const LoginLog = defineAsyncComponent(() => import('/@/views/admin/yunweiLog/loginLog/index.vue'));
const AdminLog = defineAsyncComponent(() => import('/@/views/admin/yunweiLog/log/index.vue'));
const ControlLog = defineAsyncComponent(() => import('/@/views/admin/yunweiLog/control/index.vue'));



const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
</script>

<style lang="scss" scoped>

:deep(.demo-tabs) {
  .el-tabs__content {
    height: 100%;
    height: 750px;
  }
  .el-tab-pane {
    height: 100%;
  }
}
</style>
